/**
 * Created with JetBrains WebStorm.
 * User: rendong
 * Date: 12-8-30
 * Time: 下午11:05
 * :$
 */

Image.prototype.finish = false;

/**
 * 检测图片是否加载完毕
 * @param img
 * @constructor
 */
function ImageFinishCheck(img)
{
    //console.log("check", img.src);
    img.finish = false;
    img.addEventListener("load", function (){
        img.finish = true;
        console.log("image", img.src);
    }, false);
}